from mnemoply._renewed_lib.crud import CRUDController, ItemTab, TableCol
from mnemoply._renewed_model.field import AccountCashOperation as model_Operation
from mnemoply.mass_actions import MassAction, MassActionForm, registry


class AccountCashOperationController(CRUDController):
    mysql_view_name = 'prod_v2.account_cash_operation_lookup'
    model_object = model_Operation
    lookup_columns = [        
    TableCol(name = 'account',caption= _("Account")),
    TableCol(name = 'date',caption=_("Date")),
    TableCol(name = 'amount',caption=_("Amount")),
    TableCol(name = 'register',caption= _("Register")),
    #TableCol(name = 'comment',caption=_("Comment")),
    #TableCol(name = 'coupon_id',caption= _("Coupon")),
    #TableCol(name = 'direction',caption=_("Direction"))
    ]
    add_fields = edit_fields =[]
    view_fields =[]
exposed = AccountCashOperationController()